package com.xaw4.applejack.simulation;

import java.io.Serializable;


public class Apple implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1914550095086858052L;
	public static final float APPLE_RADIUS = 0.5f;
	public float APPLE_SPEED = 10;
	
	public Vector position;
	public boolean hasLeftField;
	
	public Apple(Vector position){
		this.position=position;
	}
	
	public void update(float delta) 
	{	
		
		position.y -= APPLE_SPEED * delta;
		
		
		hasLeftField = position.y < Simulation.PLAYFIELD_MIN_Y;
	}
	
	
}
